package test;

import java.util.Arrays;

public class SelectSort {
    public static void main(String[] args) {
        int arr[]={3,6,1,8,5,10};
        System.out.println(Arrays.toString(sqrt(arr)));
    }
    public static int[] sqrt(int arr[]){
        for(int i=0;i<arr.length;i++){
            for(int j=i+1;j<arr.length;j++){
                if(arr[i]>arr[j]){
                    int temp=arr[i];
                    arr[i]=arr[j];
                    arr[j]=temp;
                }
            }
        }
        return arr;
    }
}
